package com.daylive.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daylive.dao.CosmetologyRecordsDao;
import com.daylive.model.CosmetologyRecords;
import com.daylive.page.Page;

@Service
public class CosmetologyRecordsService {
	private final int PAGE_SIZE = 10;
	@Autowired
	private CosmetologyRecordsDao cosmetologyRecordsDao;

	public Page<CosmetologyRecords> getCosmetologyRecordsList(String account,int pageNumber) {
		Page<CosmetologyRecords> page = new Page<CosmetologyRecords>(pageNumber, PAGE_SIZE);
		List<CosmetologyRecords> list = cosmetologyRecordsDao.getCosmetologyRecordsList(account,page);
		page.setResultList(list);
		return page;
	}

}
